home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c,comp.std.c
- Path: hobbes.sco.COM!scocan!john
- From: john@sco.com (John R MacMillan)
- Subject: Re: Integral conversion e.t.c. (was: Re: Hungarian notation)
- Organization: SCO Canada, Inc.
- Date: Tue, 30 Jan 1996 17:11:06 GMT
- Message-ID: <DM07qJ.CI6@sco.COM>
- References: <30C40F77.53B5@swsbbs.com> <KANZE.96Jan29121956@slsvewt.lts.sel.alcatel.de> <TANMOY.96Jan29090518@qcd.lanl.gov> <KANZE.96Jan29201312@slsvewt.lts.sel.alcatel.de>
- Sender: news@sco.COM (News administration)
-
- |Try naming a global function read, and see what happens (on most
- |compilers, anyway).
-
- I think more and more SDKs are getting this ``right'', at least in the
- UNIX environment, because a) the C standard has been stable long
- enough that we're all over adding ``const'' and prototypes and have
- time to concentrate on issues like namespace pollution, and b) we have
- to deal with number of standards like ISO C, POSIX, XPG{3,4,4.2}, plus
- historical usage, and so on. Since these have different requirements
- and we have to pass all the test suites, we've had to solve many of
- these issues.
-
- $ cat foo.c
- #include <stdio.h>
-
- int write(int n) { return n + 1; }
-
- int main(void) { printf("%d\n", write(41)); return 0; }
- $ cc foo.c -o foo
- $ ./foo
- 42
- $
-